// import { getGoodsInfo } from '@/api/index.js'
const state = {
  cloudDepotList: [
    {
      goods_id: 1,
      goods_name: '私密产品私密产品私密产品私密产品私密产品私密产…',
      goods_num: 10,
      goods_price: 300,
      goods_standard: '瓶装',
      goods_standard_id: 1
      //   src: '../../assets/矩形 2.png',
    },
    {
      goods_id: 2,
      goods_name: '私密产品私密产品私密产品私密产品私密产品私密产…',
      goods_price: 400,
      goods_num: 15,
      goods_standard: '瓶装',
      goods_standard_id: 1
    }
  ]
}

const mutations = {
  setDepotList(state, payLoad) {
    state.cloudDepotList = payLoad
  }
}

const actions = {
  //   async getDepotList(commit) {
  //     try {
  //       const res = await getGoodsInfo(1)
  //       commit('setDepotList', res.data)
  //     } catch (error) {
  //       return console.dir(error)
  //     }
  //   }
}

const getters = {}

export default {
  state,
  mutations,
  actions,
  getters,
  namespaced: true
}
